<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>微信配置编辑--${site.name}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="${site.description}"/>
    <meta name="keywords" content="${site.keywords}"/>
    <meta name="author" content="${site.author}"/>
    <link rel="icon" href="${site.logo}">
    <link rel="stylesheet" href="${base}/static/layui/css/layui.css" media="all" />
    <style type="text/css">
        .layui-form-item .layui-inline{ width:33.333%; float:left; margin-right:0; }
        @media(max-width:1240px){
            .layui-form-item .layui-inline{ width:100%; float:none; }
        }
        .layui-form-item .role-box {
            position: relative;
        }
        .layui-form-item .role-box .jq-role-inline {
            height: 100%;
            overflow: auto;
        }

    </style>
</head>
<body class="childrenBody">
<form class="layui-form" >
    <input readonly value="${tencentWeixin.id}" name="id" type="hidden">
    <div class="layui-form-item">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
                 <#if (tencentWeixin.type == 'mp')>
			       <input disabled  type="text" class="layui-input" value ="公众号">
			        <#elseif (tencentWeixin.type == 'miniapp')>
			         <input disabled  type="text" class="layui-input" value ="小程序">
			        </#if>

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
                <input readonly  type="text" class="layui-input" value = "${tencentWeixin.name}" name="name"  placeholder="请输入名称">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">appid</label>
        <div class="layui-input-block">
                <input readonly  type="text" class="layui-input" value = "${tencentWeixin.appid}" name="appid" lay-verify="required" placeholder="请输入appid">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">secret</label>
        <div class="layui-input-block">
                <input readonly  type="text" class="layui-input" value = "${tencentWeixin.secret}" name="secret" lay-verify="required" placeholder="请输入secret">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">mchId</label>
        <div class="layui-input-block">
                <input readonly  type="text" class="layui-input" value = "${tencentWeixin.mchId}" name="mchId"  placeholder="请输入mchId">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">mchKey</label>
        <div class="layui-input-block">
                <input readonly  type="text" class="layui-input" value = "${tencentWeixin.mchKey}" name="mchKey"  placeholder="请输入mchKey">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">授权回调地址</label>
        <div class="layui-input-block">
                <input readonly  type="text" class="layui-input" value = "${tencentWeixin.authNotifyUrl}" name="authNotifyUrl"  placeholder="请输入授权回调地址">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支付回调地址</label>
        <div class="layui-input-block">
                <input readonly  type="text" class="layui-input" value = "${tencentWeixin.payNotifyUrl}" name="payNotifyUrl"  placeholder="请输入支付回调地址">

        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
             <button class="layui-btn layui-btn-primary" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name)); ">关闭</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="${base}/static/layui/layui.js"></script>
<script>
</script>
</body>
</html>